home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2017 October / PCgo 10-2017 CD-ROM Germany.iso / nw.pak / Unnamed File 004864.txt < prev    next >
Encoding:
Text File  |  2015-07-29  |  6.8 KB  |  190 lines

  1. <!doctype html>
  2. <html i18n-values="dir:textdirection;">
  3. <head>
  4.   <meta charset="utf-8">
  5.   <title>ServiceWorker</title>
  6.   <link rel="stylesheet" href="chrome://resources/css/tabs.css">
  7.   <link rel="stylesheet" href="chrome://resources/css/widgets.css">
  8.   <style>/* Copyright 2014 The Chromium Authors. All rights reserved.
  9.  * Use of this source code is governed by a BSD-style license that can be
  10.  * found in the LICENSE file. */
  11.  
  12. .serviceworker-summary {
  13.     background-color: rgb(235, 239, 249);
  14.     border-top: 1px solid rgb(156, 194, 239);
  15.     margin-bottom: 6px;
  16.     margin-top: 12px;
  17.     padding: 3px;
  18.     font-weight: bold;
  19. }
  20.  
  21. .serviceworker-item {
  22.     margin-bottom: 15px;
  23.     margin-top: 6px;
  24.     position: relative;
  25. }
  26.  
  27. .serviceworker-registration {
  28.     padding: 5px;
  29. }
  30.  
  31. .serviceworker-scope {
  32.     color: rgb(85, 102, 221);
  33.     display: inline-block;
  34.     padding-bottom: 1px;
  35.     padding-top: 4px;
  36.     text-decoration: none;
  37.     white-space: nowrap;
  38. }
  39.  
  40. .serviceworker-version {
  41.     padding-bottom: 3px;
  42.     padding-left: 10px;
  43. }
  44.  
  45. .controls a {
  46.     -webkit-margin-end: 16px;
  47.     color: #777;
  48. }
  49. </style>
  50. </head>
  51. <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
  52.   <!-- templates -->
  53.   <div style="display:none">
  54.     <div id="serviceworker-version-template" class="serviceworker-version">
  55.       <div class="serviceworker-status">
  56.         <span>Installation Status:</span>
  57.         <span jscontent="$this.status"></span>
  58.       </div>
  59.       <div class="serviceworker-running-status">
  60.         <span>Running Status:</span>
  61.         <span jscontent="$this.running_status"></span>
  62.       </div>
  63.       <div class="serviceworker-script_url">
  64.         <span>Script:</span>
  65.         <span jscontent="$this.script_url"></span>
  66.       </div>
  67.       <div class="serviceworker-vid">
  68.         <span>Version ID:</span>
  69.         <span jscontent="$this.version_id"></span>
  70.       </div>
  71.       <div class="serviceworker-pid">
  72.         <span>Renderer process ID:</span>
  73.         <span jscontent="$this.process_id"></span>
  74.       </div>
  75.       <div class="serviceworker-tid">
  76.         <span>Renderer thread ID:</span>
  77.         <span jscontent="$this.thread_id"></span>
  78.       </div>
  79.       <div class="serviceworker-rid">
  80.         <span>DevTools agent route ID:</span>
  81.         <span jscontent="$this.devtools_agent_route_id"></span>
  82.       </div>
  83.       <div>
  84.         <div>Log:</div>
  85.         <textarea class="serviceworker-log"
  86.             jsvalues=".partition_id:$partition_id;.version_id:$this.version_id"
  87.             rows="3" cols="120" readonly jscontent="$this.log"></textarea>
  88.       </div>
  89.       <div class="worker-controls">
  90.         <button href="#" class="stop"
  91.             jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:version_id}"
  92.             jsdisplay="$this.running_status == 'RUNNING'">Stop</button>
  93.         <button href="#" class="sync"
  94.             jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:version_id}"
  95.             jsdisplay="$this.running_status == 'RUNNING'">Sync</button>
  96.         <button href="#" class="push"
  97.             jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:version_id}"
  98.             jsdisplay="$this.running_status == 'RUNNING'">Push</button>
  99.         <button href="#" class="inspect"
  100.             jsvalues=".cmdArgs:{process_id:process_id,devtools_agent_route_id:devtools_agent_route_id}"
  101.             jsdisplay="$this.running_status == 'RUNNING'">Inspect</button>
  102.         <span class="operation-status" style="display: none">Running...</span>
  103.       </div>
  104.     </div>
  105.     <div id="serviceworker-registration-template"
  106.         class="serviceworker-registration">
  107.       <div class="serviceworker-scope">
  108.         <span>Scope:</span>
  109.         <span jscontent="scope"></span>
  110.       </div>
  111.       <div class="serviceworker-rid">
  112.         <span>Registration ID:</span>
  113.         <span jscontent="registration_id"></span>
  114.         <span jsdisplay="$this.unregistered">(unregistered)</span>
  115.       </div>
  116.       <div jsselect="$this.active">
  117.         Active worker:
  118.         <div transclude="serviceworker-version-template"></div>
  119.       </div>
  120.       <div jsselect="$this.waiting">
  121.         Waiting worker:
  122.         <div transclude="serviceworker-version-template"></div>
  123.       </div>
  124.       <div class="registration-controls" jsdisplay="!$this.unregistered">
  125.         <button href="#" class="unregister"
  126.             jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}">
  127.           Unregister
  128.         </button>
  129.         <button href="#" class="start"
  130.             jsdisplay="$this.active.running_status != 'RUNNING'"
  131.              jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}">
  132.           Start
  133.         </button>
  134.         <span class="operation-status" style="display: none">Running...</span>
  135.       </div>
  136.     </div>
  137.     <div id="serviceworker-list-template"
  138.         jsvalues="$partition_id:$this.partition_id;.partition_id:$this.partition_id"
  139.         jsdisplay="$this.stored_registrations.length + $this.unregistered_registrations.length + $this.unregistered_versions.length > 0">
  140.       <div class="serviceworker-summary">
  141.         <span jsdisplay="$this.partition_path">
  142.           <span>Registrations in: </span>
  143.           <span jscontent="$this.partition_path"></span>
  144.         </span>
  145.         <span jsdisplay="!$this.partition_path">
  146.           <span>Registrations: Incognito </span>
  147.         </span>
  148.         <span jscontent="'(' + $this.stored_registrations.length + ')'"></span>
  149.       </div>
  150.       <div class="serviceworker-item" jsselect="$this.stored_registrations">
  151.         <div transclude="serviceworker-registration-template"></div>
  152.       </div>
  153.       <div class="serviceworker-item"
  154.           jsselect="$this.unregistered_registrations">
  155.         <div transclude="serviceworker-registration-template"></div>
  156.       </div>
  157.       <div class="serviceworker-item" jsselect="$this.unregistered_versions">
  158.         Unregistered worker:
  159.         <div transclude="serviceworker-version-template"></div>
  160.       </div>
  161.     </div>
  162.     <div id="serviceworker-options-template">
  163.       <div>
  164.         <label>
  165.           <span>
  166.             <input type="checkbox" class="debug_on_start"
  167.                 jsvalues=".checked:$this.debug_on_start">
  168.           </span>
  169.           <span>
  170.             Opens the DevTools window for ServiceWorker on start for debugging.
  171.           </span>
  172.         </label>
  173.       </div>
  174.     </div>
  175.   </div>
  176.   <h1>ServiceWorker</h1>
  177.   <div class="content">
  178.     <div id="serviceworker-options"></div>
  179.     <div id="serviceworker-list"></div>
  180.   </div>
  181.   <script src="chrome://resources/js/util.js"></script>
  182.   <script src="chrome://resources/js/cr.js"></script>
  183.   <script src="serviceworker_internals.js"></script>
  184.   <script src="chrome://resources/js/load_time_data.js"></script>
  185.   <script src="chrome://resources/js/jstemplate_compiled.js"></script>
  186.   <script src="strings.js"></script>
  187.   <script src="chrome://resources/js/i18n_template2.js"></script>
  188. </body>
  189. </html>
  190.